package com.discuss.community.controller;

import com.discuss.community.util.MailClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "测试接口")
@RestController
@RequestMapping("/test")
public class TestController {
    @Autowired
    MailClient mailClient;

    @ApiOperation("邮件发送")
    @GetMapping("/mailTest")
    public String mail() {
        mailClient.sendMail("2486722561@qq.com","TEST","hello");
        return "OK";
    }



}
